a = input()
print(a[2],a[1],a[0],sep='')